package com.zwh.dao;

import com.zwh.entity.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;
public interface AdminDAO {
	List<Admin> selectAdmin(@Param("start") int start, @Param("rows") int rows);
	Admin selectAdminByNP(@Param("username") String username, @Param("password") String password);
	void updatePower(@Param("admin_id") Integer admin_id, @Param("power") Integer power);
	void updatePassword(@Param("admin_id") Integer admin_id, @Param("password") String password);
	void addAdmin(Admin admin);
	void deleteAdmin(@Param("admin_id") Integer admin_id);
	void deleteAdmins(Integer[] ids);
	int count();
}
